/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.nextel.project.agps;

import com.mot.iden.customercare.CustomerCare;
import com.mot.iden.device.StatusManager;

/**
 *
 * @author wpalacios
 */
public class PropertiesMovil {

    public static String numeroTelefonico = "";
    public static String nextel = "";
    public static int senal = 0;
    public static int bateria = 0;
    public static String modelo = "";
    public static String ip = "";
    public static long latitud = 0;
    public static long longitud = 0;
    public static int errorConexionGPS = 0;
    public static int errorPosicionGPS = 0;
    
    
    public static String simId = "";
    public static String imei = "";        
    public static String linea2 = "";

    private PropertiesMovil(){
    }



    public static  void getMovil(){
        numeroTelefonico = CustomerCare.getMyInfo(CustomerCare.LINE_1);
        //numeroTelefonico = "511994001406";
        nextel = CustomerCare.getMyInfo(CustomerCare.PRVT_ID);
        senal = StatusManager.getStatus(StatusManager.SIGNAL_STRENGTH);
        bateria = StatusManager.getStatus(StatusManager.BATTERY_LEVEL);
        modelo = CustomerCare.getUnitInfo(CustomerCare.DEVICE_MODEL);        
        ip = CustomerCare.getMyInfo(CustomerCare.CARRIER_IP);
        
        
        simId = CustomerCare.getClientInfo(CustomerCare.SIM_ID);
        imei = CustomerCare.getClientInfo(CustomerCare.IMEI);        
        linea2 = CustomerCare.getMyInfo(CustomerCare.LINE_2);        
    }

    public static  void getMovilActualiza(){
        senal = StatusManager.getStatus(StatusManager.SIGNAL_STRENGTH);
        bateria = StatusManager.getStatus(StatusManager.BATTERY_LEVEL);
    }

}
